<div class="layui-fluid layui-anim website-anim-up" id="website-class-apply-project-add" lay-title="课题组成员新增">
    <div class="layui-row layui-col-space8 website-container">
        <div class="layui-col-md10 layui-col-sm10 layui-col-xs10">
            <form class="layui-form" lay-filter="class-apply-project-add-form" id="class-apply-project-add-form">
                <div class="layui-form-item">
                    <div class="layui-row">
                        <!-- 基本信息-->
                        <div class="website-hide">
                            <label class="layui-form-label">id</label>
                            <div class="layui-input-block">
                                <input type="text" name="projectId" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-xs6 layui-col-sm6 layui-col-md6 ">
                            <label class="layui-form-label website-form-item-require">项目来源
                            </label>
                            <div class="layui-input-block">
                                <input type="text" name="projectSource" lay-verify="required" autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-xs6 layui-col-sm6 layui-col-md6 ">
                            <label class="layui-form-label website-form-item-require">类别</label>
                            <div class="layui-input-block">
                                <input type="text" name="type" lay-verify="required" autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-inline layui-col-xs6 layui-col-sm6 layui-col-md6 ">
                            <label class="layui-form-label website-form-item-require">课题名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="topicName" lay-verify="required" autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-xs6 layui-col-sm6 layui-col-md6 ">
                            <label class="layui-form-label website-form-item-require">立项时间</label>
                            <div class="layui-input-block">
                                <input type="text" name="projectTime" lay-verify="required" id="project-add-projectTime"
                                       class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-inline layui-col-xs6 layui-col-sm6 layui-col-md6 ">
                            <label class="layui-form-label website-form-item-require">是否结项</label>
                            <div class="layui-input-block">
                                <select name="isFinish" lay-verify="required" lay-filter="isFinish">
                                    <option value="">请选择</option>
                                    <option value="true">是</option>
                                    <option value="false">否</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item website-hide">
                    <button type="button" class="layui-btn" lay-submit lay-filter="class-apply-project-add-form-submit"
                            id="submit">保存</button>

                    <button type="reset" class="layui-btn" id="reset">取消</button>
                </div>
            </form>
        </div>
    </div>
</div>

<script data-th-inline="none" type="text/javascript">
    layui.use(['dropdown', 'jquery', 'laydate', 'form', 'website', 'table', 'validate'], function () {
        let $ = layui.jquery,
            laydate = layui.laydate,
            website = layui.website,
            form = layui.form,
            validate = layui.validate,
            formSelects = layui.formSelects,
            dropdown = layui.dropdown,
            table = layui.table,
            $view = $('#website-class-apply-project-add'),
            $submit = $('#submit');
        // 重新渲染 form否则不会显示下拉框
        form.render();
        //初始化时间
        laydate.render({
            elem: '#project-add-projectTime' //指定元素
            , type: 'date',
            trigger: 'click',
        });
        form.verify(validate);
        // formSelects.render();


    })


</script>